package com.hyh.spring.service;

import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @BelongsPackage: com.hyh.spring.service
 * @ClassName AccountService
 * @Author: hyhWTX
 * @CreateTime: 2023-06-06  12:26
 * @Description: TODO (一句话描述以下该类的功能)
 * @Version: 1.0
 */
public interface AccountService {

    /**
     * 扣减账户余额
     * @param userId 用户id
     * @param money 金额
     */
    void decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}